package mystack;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * 测试顺序栈
 */
public class Test {

    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        myStack.push(5);
        myStack.push(6);
        myStack.push(7);
        myStack.push(8);
        myStack.push(9);
        myStack.push(10);
        System.out.println(myStack.size());
        myStack.push(11);
        System.out.println(myStack.size());
        System.out.println(myStack.peek());
        System.out.println("============遍历栈===============");
        while (!myStack.isEmpty()){
            System.out.println(myStack.pop());
        }
    }
}
